package net.zjitc.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.List;

/**
 * @author 毛钰深
 * @create 2022/1/31
 */
@Data
@TableName("sp_goods")
public class Goods {
    @TableId(type = IdType.AUTO)
    private Integer goods_id;
    private String goods_name;
    //和sp_attribute表挂钩,以为','分割的分类列表
    @TableField(exist = false)
    private String goods_cat;
    private Double goods_price;
    private Integer cat_id;
    private Integer goods_number;
    private Integer goods_weight;
    private String goods_introduce;
    @JsonInclude(JsonInclude.Include.ALWAYS)
    private String goods_big_logo;
    @JsonInclude(JsonInclude.Include.ALWAYS)
    private String goods_small_logo;
    private Integer goods_state;
    @JsonIgnore
    private String is_del;
    private Integer add_time;
    private Integer upd_time;
    private Integer hot_mumber;
    private Boolean is_promote;
    @TableField(exist = false)
    private List<GoodsPics> pics;
    @TableField(exist = false)
    private List<GoodsAttr> attrs;
    private Integer cat_one_id;
    private Integer cat_two_id;
    private Integer cat_three_id;

    public void setCatOneId(Integer cat_one_id) {
        this.cat_one_id = cat_one_id;
    }

    public void setCatTwoId(Integer cat_two_id) {
        this.cat_two_id = cat_two_id;
    }

    public void setCatThreeId(Integer cat_three_id) {
        this.cat_three_id = cat_three_id;
    }

    public void setGoodsId(Integer goods_id) {
        this.goods_id = goods_id;
    }

    public void setGoodsName(String goods_name) {
        this.goods_name = goods_name;
    }

    public void setGoodsPrice(Double goods_price) {
        this.goods_price = goods_price;
    }

    public void setCatId(Integer cat_id) {
        this.cat_id = cat_id;
    }

    public void setGoodsNumber(Integer goods_number) {
        this.goods_number = goods_number;
    }

    public void setGoodsWeight(Integer goods_weight) {
        this.goods_weight = goods_weight;
    }

    public void setGoodsIntroduce(String goods_introduce) {
        this.goods_introduce = goods_introduce;
    }

    public void setGoodsBigLogo(String goods_big_logo) {
        this.goods_big_logo = goods_big_logo;
    }

    public void setGoodsSmallLogo(String goods_small_logo) {
        this.goods_small_logo = goods_small_logo;
    }

    public void setGoodsState(Integer goods_state) {
        this.goods_state = goods_state;
    }

    public void setIsDel(String is_del) {
        this.is_del = is_del;
    }

    public void setAddTime(Integer add_time) {
        this.add_time = add_time;
    }

    public void setUpdTime(Integer upd_time) {
        this.upd_time = upd_time;
    }

    public void setHotMumber(Integer hot_mumber) {
        this.hot_mumber = hot_mumber;
    }

    public void setIsPromote(Boolean is_promote) {
        this.is_promote = is_promote;
    }
}
